<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="struts"%>

<!DOCTYPE html>

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to IMessager</title>
<link type="text/css" href="./bootstrap/css/bootstrap.css"
	rel="stylesheet" />
<link type="text/css" href="./bootstrap/css/bootstrap-responsive.css"
	rel="stylesheet" />
<script type="text/javascript" src="./bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="./js/jquery.validate.js"></script>
<script type="text/javascript" src="./js/jquery-1.7.1.js"></script>
 <script type="text/javascript" src="./js/register.js"></script>
<script src="./bootstrap/js/bootstrap-dropdown.js"></script>

<link type="text/css" href="./css/register.css" rel="stylesheet" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body id="wrapper">
	<div id="bg_wrapper">
		<img src="./image/login_bg_7.jpg" />
	</div>

	<div>
		<div class="navbar">
			<div class="navbar-inner">
				<div class="container">
					<a class="btn btn-navbar" data-toggle="collapse"
						data-target=".nav-collapse"> <span class="icon-bar"></span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> </a> <img
						class="brand"  src="./image/logo.png"/>  
					<div class="nav-collapse">
						<ul class="nav">
							<li><a href="login">Home</a></li>
							<li class="active"><a href="#">注册</a></li>
							<li><a href="#">关于</a></li>
						</ul>
						<ul class="nav pull-right">
             <li class="divider-vertical"></li>
             <li class="dropdown">
               <a href="#" class="dropdown-toggle" data-toggle="dropdown">选择语言 <b class="caret"></b></a>
               <ul class="dropdown-menu">
                 <li><a href="#">中文</a></li>
                  <li><a href="#">English</a></li>
                  <li><a href="#">Other</a></li>
              </ul>
            </li>
          </ul>
					</div>
					<!-- /.nav-collapse -->
				</div>
			</div>
			<!-- /navbar-inner -->
		</div>
		<div id="login-wrapper" class="row">
 			<div id="login-field" class="span5 offset4">
				<form id="register-form" method="post" action="doRegister"
					class="form-horizontal well">
					<fieldset>
						<legend>请填写必要的注册信息</legend>
						<div style="margin-left: 150px; color: red;" >
						<struts:actionerror/>
						<struts:fielderror></struts:fielderror>
						</div>
 						<div class="control-group">
							<label class="control-label" for="userName">用户名：</label>
							<div class="controls">
								<div class="input-prepend">
									<span class="add-on"><i class="icon-user"></i></span><input
										type="text" class="input-medium" id="userName" type="text"
										name="userName" autofocus required placeholder="username">
								</div>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="password">密码 ：</label>
							<div class="controls">
								<div class="input-prepend">
									<span class="add-on"><i class="icon-lock"></i></span><input type="password"
										class="input-medium" id="password" 
										name="password" placeholder="password"/> 
								</div>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="passwordconfirm">确认密码 ：</label>
							<div class="controls">
								<div class="input-prepend">
									<span class="add-on"><i class="icon-lock"></i></span><input type="password"
										class="input-medium" id="passwordconfirm" 
										name="passwordconfirm" placeholder="password"/> 
								</div>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="email">Email：</label>
							<div class="controls">
								<div class="input-prepend">
									<span class="add-on"><i class="icon-envelope"></i></span><input type="email"
										class="input-medium" id="email" 
										name="email" placeholder="123456@gmail.com"/> 
								</div>
							</div>
						</div>
						<div class="form-actions">
						<div class="row">
 							&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
 							<button type="submit" class="btn btn-primary span1 offset1"><i class="icon-user icon-white"></i>注册</button>
						</div>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
